package cn.wolfcode.wolf2w.business.service;

import cn.wolfcode.wolf2w.api.domain.Answer;
import cn.wolfcode.wolf2w.business.query.AnswerQuery;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 回答Service接口
 * 
 * @author 浪兎兎
 * @date 2025-06-07
 */
public interface IAnswerService extends IService<Answer>{
    /**
    * 分页
    * @param qo
    * @return
    */
    IPage<Answer> queryPage(AnswerQuery qo);

    IPage<Answer> queryPageByUserId(AnswerQuery qo);

    void answer(Answer answer);

    void focus(Long id);

    void unfocus(Long id);

    void answerPersistence();

    Long giveLikeAnswer(Long id);
}
